package com.wly.datapool.playerpool;

import java.util.ArrayList;

import com.wly.datapool.heropool.hero.BaseHero;
import com.wly.utils.KeyGenerator;

public abstract class BasePlayer
{
	protected int _playerId;
	protected String _name;
	protected int _mapId;
	protected int _posX;
	protected int _posY;
	private   int _stat;
	protected ArrayList<BaseHero> _heroList;
	
	public BasePlayer(String name)
	{
		_name     = name;
		_playerId = KeyGenerator.getPermanentKey();
		_heroList = new ArrayList<BaseHero>();
	}
	
	public String getName()
	{
		return _name;
	}
	
	public ArrayList<BaseHero> getHeroList()
	{
		return _heroList;
	}
	
	public int getMapId()
	{
		return _mapId;
	}
	
	public int gePosX()
	{
		return _posX;
	}
	
	public int getPosY()
	{
		return _posY;
	}
	
	public int getPlayerId()
	{
		return _playerId;
	}
	
	public void onLeave()
	{
		
	}
}
